package edu.tyut.game.logic.model

data class WebResult<T>(val status: String, val msg: String, val data: T?) {
    fun <T> success(msg: String, data: T): WebResult<T> {
        return WebResult("ok", msg, data)
    }

    fun <T> error(msg: String, data: T): WebResult<T> {
        return WebResult("error", msg, data)
    }
}
